import os

# with open('./exm.out', 'r', encoding='utf-8') as fo:
#     # fm0 = 'cxsc'
#     for i in range(10):
#         part = fo.read(30*1024*1024)
#         fm = 'cxsc'+str(i)+'.out'
#         with open(fm, 'w', encoding='utf-8') as f1:
#             f1.write(part)
#             print(fm)
ct = 0
for i in range(9):
    cn = 0
    fm = 'cxsc'+str(i)+'.out'
    with open(fm, 'r', encoding='utf-8') as f0:
        for i in range(30):
            cnt = f0.read(1024*1024)
            cn = cnt.find('  450 ') + cn
    print(cn)
    ct = cn + ct
print(ct)    # fo.write
# part = fo.read(1024)
# if part
# print(fm)
